package java_objects.static_modifier;

public class CircleTest {

	public static void main(String[] args) {
		
		// misleading to access static variable using Object
		Circle c1 = new Circle(10);
		Circle c2 = new Circle(20);
		Circle c3 = new Circle(30);
		
		// What is the radius of c1?
		// expecting radius = 10 but now it is 30


		// Correct use of static field
		Circle.radius = 10;
		Circle.radius = 20;
		Circle.radius = 30;

	}
}
